import request from '@/utils/request'

// 查询供应商资料列表
export function listDoc(query) {
  return request({
    url: '/domain/supply/list',
    method: 'get',
    params: query
  })
}

// 查询供应商资料详细
export function getDoc(supplyid) {
  return request({
    url: '/domain/supply/' + supplyid,
    method: 'get'
  })
}

// 新增供应商资料
export function addDoc(data) {
  return request({
    url: '/domain/supply',
    method: 'post',
    data: data
  })
}

// 修改供应商资料
export function updateDoc(data) {
  return request({
    url: '/domain/supply',
    method: 'put',
    data: data
  })
}

// 删除供应商资料
export function delDoc(supplyid) {
  return request({
    url: '/domain/supply/' + supplyid,
    method: 'delete'
  })
}
